package domain;

import java.time.LocalDateTime;
import java.util.Date;

public class News {
    private Long newsId;
    private String newsTitle;
    private LocalDateTime newsDate;
    private String newsImage;
    private String newsContent;
    private String newsTypeName;
    private Long newsTypeId;

    public String getNewsTypeName() {
        return newsTypeName;
    }

    public void setNewsTypeName(String newsTypeName) {
        this.newsTypeName = newsTypeName;
    }

    public Long getNewsTypeId() {
        return newsTypeId;
    }

    public void setNewsTypeId(Long newsTypeId) {
        this.newsTypeId = newsTypeId;
    }

    public Long getNewsId() {
        return newsId;
    }

    public void setNewsId(Long newsId) {
        this.newsId = newsId;
    }

    public String getNewsTitle() {
        return newsTitle;
    }

    public void setNewsTitle(String newsTitle) {
        this.newsTitle = newsTitle;
    }

    public LocalDateTime getNewsDate() {
        return newsDate;
    }

    public void setNewsDate(LocalDateTime newsDate) {
        this.newsDate = newsDate;
    }

    public String getNewsImage() {
        return newsImage;
    }

    public void setNewsImage(String newsImage) {
        this.newsImage = newsImage;
    }

    public String getNewsContent() {
        return newsContent;
    }

    public void setNewsContent(String newsContent) {
        this.newsContent = newsContent;
    }

    public Long getNewsType() {
        return newsTypeId;
    }

    public void setNewsType(Long newsTypeId) {
        this.newsTypeId = newsTypeId;
    }


    @Override
    public String toString() {
        return "News{" +
                "newsId=" + newsId +
                ", newsTitle='" + newsTitle + '\'' +
                ", newsDate=" + newsDate +
                ", newsImage='" + newsImage + '\'' +
                ", newsContent='" + newsContent + '\'' +
                ", newsTypeName='" + newsTypeName + '\'' +
                ", newsTypeId=" + newsTypeId +
                '}';
    }
}
